package com.gongpingjialoan.widget;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.gongpingjialoan.R;
import com.gongpingjialoan.activity.car.BuyCarVipActivity;

/**
 * Created by Administrator on 2016/3/21.
 */
public class VipLimitDialog extends Dialog implements View.OnClickListener {


    private BuyCarVipActivity mActivity;

    private Button sureButton ;

    public VipLimitDialog(Context context) {
        super(context, R.style.dialogs);
        mActivity = (BuyCarVipActivity) context;
    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.vip_limit_dialog);


        sureButton = (Button) findViewById(R.id.sure_button);
        sureButton.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
      if(v == sureButton){
            mActivity.mNoIntentFragment.getRecomendCar();
            dismiss();
        }
    }
}
